<p class="title"><%= 'Upload file'.t %></p>

<% form_tag({:action => 'do_the_upload', :folder_id => controller.folder_id}, {:multipart => true}) do %>
    <p><%= myfile_to_file(error_messages_for('myfile')) %>
    <label for="myfile_name"><%= 'Select file to upload'.t %>:</label><br/>
    <%= file_field 'myfile', 'myfile' %><br />
    <%= ('Max upload file size (in Kb):'.t) + (MAX_UPLOAD_FILE_SIZE / 1024).floor.to_s if MAX_UPLOAD_FILE_SIZE %><br /><br />
    <%= submit_tag 'Upload'.t %></p>
<% end %>

<%= link_to 'Back'.t, :controller => 'folder', :action => 'list', :id => controller.folder_id %>